package snowforce.datatype;

import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
public class PassPointJSON
{
	private String	status		= "";
	private int		count		= -1;
	private float	latitude	= -1;
	private float	longitude	= -1;
	private float	altitude	= 0;
	private float	speed		= 0;
	private int		heading		= 0;
	private String	edgeId		= "";
	private long	timestamp	= -1;

	public PassPointJSON()
	{

	}

	public PassPointJSON(String status, int count, float latitude, float longitude, float altitude, float speed, int heading, String edgeId, long timestamp)
	{
		super();
		this.status = status;
		this.count = count;
		this.latitude = latitude;
		this.longitude = longitude;
		this.altitude = altitude;
		this.speed = speed;
		this.heading = heading;
		this.edgeId = edgeId;
		this.timestamp = timestamp;
	}

	public String getStatus()
	{
		return status;
	}

	public void setStatus(String status)
	{
		this.status = status;
	}

	public int getCount()
	{
		return count;
	}

	public void setCount(int count)
	{
		this.count = count;
	}

	public float getLatitude()
	{
		return latitude;
	}

	public void setLatitude(float latitude)
	{
		this.latitude = latitude;
	}

	public float getLongitude()
	{
		return longitude;
	}

	public void setLongitude(float longitude)
	{
		this.longitude = longitude;
	}

	public float getSpeed()
	{
		return speed;
	}

	public void setSpeed(float speed)
	{
		this.speed = speed;
	}

	public int getHeading()
	{
		return heading;
	}

	public void setHeading(int heading)
	{
		this.heading = heading;
	}

	public String getEdgeId()
	{
		return edgeId;
	}

	public void setEdgeId(String edgeId)
	{
		this.edgeId = edgeId;
	}

	public long getTimestamp()
	{
		return timestamp;
	}

	public void setTimestamp(long timestamp)
	{
		this.timestamp = timestamp;
	}

	public float getAltitude()
	{
		return altitude;
	}

	public void setAltitude(float altitude)
	{
		this.altitude = altitude;
	}

	@Override
	public String toString()
	{
		StringBuilder builder = new StringBuilder();
		builder.append("PassPointJSON [status=");
		builder.append(status);
		builder.append(", count=");
		builder.append(count);
		builder.append(", latitude=");
		builder.append(latitude);
		builder.append(", longitude=");
		builder.append(longitude);
		builder.append(", altitude=");
		builder.append(altitude);
		builder.append(", speed=");
		builder.append(speed);
		builder.append(", heading=");
		builder.append(heading);
		builder.append(", edgeId=");
		builder.append(edgeId);
		builder.append(", timestamp=");
		builder.append(timestamp);
		builder.append("]");
		return builder.toString();
	}

}